/*
 * Project Beknyou
 * Copyright (c) 2010-2011 Saint Paul College, All Rights Reserved
 * Redistributions in source code form must reproduce the above
 * Copyright and this condition.
 * The contents of this file are subject to the GNU General Public
 * License, Version 2 (the "License"); you may not use this file
 * except in compliance with the License. A copy of the License is
 * available at http://www.opensource.org/licenses/gpl-license.php.
 */
package com.benkyou.common.messages;

import com.jme3.network.AbstractMessage;
import com.jme3.network.serializing.Serializable;

/**
 *
 * @author Austin Allman
 */
@Serializable
public class ChatClientMessage extends AbstractMessage {

    private String name;
    private String message;
    private boolean newUser;
    private String uuid;

    public ChatClientMessage() {
    }

    public ChatClientMessage(String name, String message) {
        this.name = name;
        this.message = message;
        newUser = false;
    }

    public ChatClientMessage(String name, String message, boolean newUser, String uuid) {
        this.name = name;
        this.message = message;
        this.newUser = newUser;
        this.uuid = uuid;
    }
    public String getUUID(){
        return uuid;
    }

    public boolean isNewUser() {
        return newUser;
    }

    public void setNewUser(boolean newUser) {
        this.newUser = newUser;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    /**
     * @param message the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }

    public void setUUID(String uuid) {
        this.uuid = uuid;
    }
}
